package main;

import security.Account;
import security.CASSecurityImpl;
import security.LoginInfo;
import entity.RemoteAuthentication;
import entity.Service;

public class Test {
	public static void main(String[] args) throws Exception {
		CASSecurityImpl cas = new CASSecurityImpl();
//		String userid = cas.registUser("123");
//		System.out.println(userid);
		
//		Account account = new Account();
//		Service service = new Service();
//		account.setPassword("asdf");
//		account.setUsername("ffddss");
//		account.setUserid("14d380ad-4d2a-4ec9-b457-33e9540dde08");
//		service.setServiceName("name");
//		service.setServiceURI("url");
//		account.setService(service);
//		cas.addUserAccount(account);
		/*
		RemoteAuthentication ra = new RemoteAuthentication();
		ra.setName("name");
		ra.setRemoteURI("logintest");
		cas.regist(ra);*/
		
//		LoginInfo li = new LoginInfo();
//		li.setPassword("pwd");
//		li.setRAname("name");
//		li.setUserid("14d380ad-4d2a-4ec9-b457-33e9540dde08");
//		li.setUsername("username1");
//		cas.login(li);
		//cas.logout("c9fab61f-3c75-4ac2-87bd-deac7f706d33");
		//cas.unregist("name");
	}
}
